Skip to content

Reuse probed device-info for launch and host selection#839

Merged
chrisdp merged 7 commits into
masterfrom
feature/skip-device-info-fetch
Jul 6, 2026
Merged

Reuse probed device-info for launch and host selection#839
chrisdp merged 7 commits into
masterfrom
feature/skip-device-info-fetch

Conversation

@chrisdp

@chrisdp chrisdp commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

promptForHost (including manual host entry) now returns { host, deviceInfo }, using the raw device-info gathered while probing the device. All callers read .host.

DebugConfigurationProvider attaches that raw device-info to the launch config so the debug session can skip its own device-info request, and enhances a local copy via roku-deploy's enhanceDeviceInfo instead of issuing a second request.

Depends on rokucommunity/roku-deploy#300 (enhanceDeviceInfo) and rokucommunity/roku-debug#381 (the launch config deviceInfo field).

chrisdp added 4 commits June 30, 2026 17:44
promptForHost and manual host entry now return { host, deviceInfo }, using
the raw device-info gathered while probing the device. The debug config
provider attaches that raw device-info to the launch config so the debug
session can skip its own device-info request, and enhances a local copy via
roku-deploy's normalizeDeviceInfo instead of making a second request.
promptForHost and promptForHostManual now resolve to
{ host, deviceInfo } | undefined instead of an object with undefined fields,
so callers get a clear all-or-nothing result. Callers read the host via
optional chaining.
…ail fast when unreachable

Add a shared HostWithDeviceInfo interface (host + raw device-info) in the
device manager, returned by promptForHost, promptForHostManual, and
getHealthyActiveHost. processHostParameter reuses the device already probed by
the picker/active-host flow instead of probing again, assigns the raw
device-info onto config.deviceInfo, and throws when the device can't be
reached. Password resolution reads the serial number from config.deviceInfo,
so processHostParameter no longer returns a tuple.

@TwitchBronBron TwitchBronBron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. :)

@TwitchBronBron TwitchBronBron added the create-vsix PRs with this tag will trigger a vsix build on vscode-brightscript-language for every push label Jul 2, 2026
@rokucommunity-bot

Copy link
Copy Markdown
Contributor

Hey there! I just built a new version of the vscode extension based on 2fc7e76. You can downloaded the .vsix here and then follow these installation instructions.

@chrisdp chrisdp merged commit 7410e4e into master Jul 6, 2026
8 checks passed
@rokucommunity-bot

Copy link
Copy Markdown
Contributor

Hey there! I just built a new version of the vscode extension based on cfc88ca.

Download:

Install instructions.

@chrisdp chrisdp deleted the feature/skip-device-info-fetch branch July 6, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-vsix PRs with this tag will trigger a vsix build on vscode-brightscript-language for every push

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants